package com.zhejiangzhengyuan.municipal_common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.sql.Timestamp;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 记录消息信息
 *
 * @author linju
 * @since 2019-12-3
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Warn消息", description = "推送消息PO")
public class WarnMessage extends Model<WarnMessage> {

  private static final long serialVersionUID = 1L;

  @ApiModelProperty(value = "自增主键")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty(value = "关联警告事件Id")
  private Long warnEventId;

  @ApiModelProperty(value = "接收用户Id")
  private Long receiveUserId;

  @ApiModelProperty(value = "记录创建时间")
  private Timestamp createTime;

  @ApiModelProperty(value = "模块名称")
  private String moduleName;

  @Override
  protected Serializable pkVal() {
    return this.id;
  }
}
